package peer.rdp;

import java.util.ArrayList;

import peer.rdp.message.ALMessage;


public class ALTask {
	Connection conn;
	ALMessage alm;
	int lastRead=0;
	ArrayList<Integer> ackList;
	@SuppressWarnings("unchecked")
	ALTask(Connection conn){
		this.conn=conn;
		ackList=new ArrayList();
	}
	
	void addAck(int sequence){
		//System.out.println("sendACK "+sequence);
		ackList.add(sequence);
	}
	
	void run(){
		conn.sender.sendALMessage(ackList);
	}
}
